#import "AppDelegate.h"
#import "AppDelegate+PushService.h"
#import "OpenInstallSDK.h"
@interface AppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    NSArray *languages = [[NSUserDefaults standardUserDefaults] objectForKey:@"AppleLanguages"];
    NSString *language = languages[0];
    if ([language containsString:@"zh"]) {
        [[NSUserDefaults standardUserDefaults] setObject:@"zh-Hans" forKey:KAppLanguage];
    } else {
        [[NSUserDefaults standardUserDefaults] setObject:@"en" forKey:KAppLanguage];
    }
    [super application:application didFinishLaunchingWithOptions:launchOptions];
    [[UserManager sharedUserManager] loadUserInfo];
    [self initOpenInstall];
    [self initYTKNetWork];
    [self initKeyBoard];
    [self initWindow];
    [self initUMeng];
    [self initService];
    [self initUserManager];
    [self monitorNetworkStatus];
    [self initLocation];
    [self intPushConfigWidthLaunchOptions:launchOptions];
    return YES;
}
- (void)initOpenInstall {
    [OpenInstallSDK initWithDelegate:self];
}
- (void)applicationWillResignActive:(UIApplication *)application {
}
- (void)applicationDidEnterBackground:(UIApplication *)application {
}
- (void)applicationWillEnterForeground:(UIApplication *)application {
}
- (void)applicationDidBecomeActive:(UIApplication *)application {
}
- (void)applicationWillTerminate:(UIApplication *)application {
}
@end
